package start.gui;

import java.awt.Dimension;
import javax.swing.*;

public class GUIClient {
	
	public static void createAndShowGUI(){
		JFrame frame = new JFrame("Phate867's Strongbox Visual Client (beta1)");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		LoginPanel md = new LoginPanel("images/cassaforte.jpg",null);
		
		//BoxPanel md = new BoxPanel("images/treasure3.jpg",sbc); 
		
		frame.setContentPane(md);
		frame.setSize(new Dimension(800,600));
		frame.setResizable(false);
		frame.setVisible(true);
	}

	/**
	 * @param args
	 * @throws UnsupportedLookAndFeelException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
		UIManager.setLookAndFeel(
				UIManager.getSystemLookAndFeelClassName());

		SwingUtilities.invokeLater(new Runnable(){
			public void run(){
				createAndShowGUI();
			}
		});

	}

}
